<?php

namespace App\Http\Controllers\Tenant;

use App\Http\Controllers\Controller;
use App\Models\TaskServiceType;
use Illuminate\Http\JsonResponse;
use Log;

class TaskServiceTypeController extends Controller
{
    public function index()
    {
        $serviceTypes = TaskServiceType::orderBy('name')->get();

        return response()->json([
            'code' => 0,
            'message' => '获取任务服务类型成功',
            'data' => $serviceTypes,
        ]);
    }
}
